package com.controller;

import com.pojo.Man;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pojo")
public class HelloController2 {

    @Autowired
    private Man man;

    @RequestMapping("/man")
    public Man man() {
//        System.out.println(man.getUserName()+":"+man.getAge()+":"+man.getBoss()+":"+man.getBirth());
        System.out.println(man);
        return man;
    }
}
